package com.repair.api.worker.request.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * Created by IntelliJ IDEA.
 *
 * @author zq
 * @version 1.0
 * @create 2024-09-28 17:57
 * @since jdk1.8
 */
@Data
public class WorkerQueryParam implements Serializable {
    private static final long serialVersionUID = 1L;

    private int currentPage;

    private int pageSize;

    private Long id;

    private String nickName;

    private String workerStatus;

    private Integer authenticationStatus;

    private String phone;

    private String workerLevel;

    private BigDecimal totalOrderAmountMin;
    private BigDecimal totalOrderAmountMax;

    private BigDecimal receivedOrderSumMin;
    private BigDecimal receivedOrderSumMax;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeMin;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTimeMax;
}
